TimeSolarToLunar

 

Change the Gregorian date to the lunar date.

 

void @TimeSolarToLunar(int year, int month, int day, int lyear, int lmonth, int lday, int leap);

 

Parameters

int year : Gregorian Date (Year)

int month : Gregorian Date (Mon)

int day : Gregorian date (days)

int lyear : Lunar Date (Year)

int lmonth : Lunar Date (Month)

int lday : Lunar date (days)

int leap : Leap month (0=not a leap month, 1 = leap month)

 

Return Value

None

 

Example

@TimeSolarToLunar(2016, 3, 31, year, month, day, i);
if(year != 2016 || month != 2 || day != 23 || i != 0) {
   @sprintf(buf, "TimeSolarToLuman Error");
   @MessageBox(buf, "Test Failed", MB_OK);
   return;
}

 

Description : 2016-3-31 to lunar calendar to be checked for correctness.

 

Version Information

Supported version: 10.3.1 or higher

 

Related Helps

@TimeFromString()

@TimeGetWaiting()

@TimeMinusDay()

@TimeMinusHour()

@TimeMinusMin()

@TimeMinusMon()

@TimePlusDay()

@TimePlusHour()

@TimePlusMin()

@TimePlusMon()

@TimeSetLocalTime()

@TimeSolarToLunar()